<?php
if(!defined('GbIncl')){?>
<meta http-equiv="refresh" content="0;url=block.php" />
<?php }else{ ?>
<div class="section">
	<div class="post-title">
		<div class="section-title">Agenda Kegiatan</div>
	</div>
<?php //audit//
$AGENDAAUDIT= mysql_query("SELECT * FROM AUDIT_AGENDA_KEGIATAN_SPM ORDER BY ID_AAKS DESC LIMIT 1");
while ($DATAAGENDAAUDIT=mysql_fetch_array($AGENDAAUDIT)){?>
    <div class="post">
        <div class="archive-post-date">
            <div class="archive-post-month"><?php echo substr($DATAAGENDAAUDIT['TANGGAL_AAKS'],0,2); ?> <?php echo substr($DATAAGENDAAUDIT['TANGGAL_AAKS'],3,3); ?> <?php echo substr($DATAAGENDAAUDIT['TANGGAL_AAKS'],7,4); ?></div>
            <a href="../spm-itats/content.php?p=300"><b title="AUDIT">AUDIT</b></a>
        </div>
        <div class="archive-post-title">
        <h3><a href="#"><?php echo "$DATAAGENDAAUDIT[JUDUL_AAKS]"?></a></h3>
        <div class="post-date"><?php echo "$DATAAGENDAAUDIT[NAMA_AAKS]"?></div>
        </div>
    </div>
    <div class="archive-separator"></div>
<?php }?>
<?php //dokumentasi
$AGENDADOKUMENTASI= mysql_query("SELECT * FROM DOKUMENTASI_AGENDA_KEGIATAN_SPM ORDER BY ID_DAKS DESC LIMIT 1");
while ($DATAAGENDADOKUMENTASI=mysql_fetch_array($AGENDADOKUMENTASI)){?>
	<div class="post">
		<div class="archive-post-date">
			<div class="archive-post-month"><?php echo substr($DATAAGENDADOKUMENTASI['TANGGAL_DAKS'],0,2); ?> <?php echo substr($DATAAGENDADOKUMENTASI['TANGGAL_DAKS'],3,3); ?> <?php echo substr($DATAAGENDADOKUMENTASI['TANGGAL_DAKS'],7,4); ?></div>
            <a href="../spm-itats/content.php?p=400"><b title="DOKUMENTASI">DOKUMENTASI</b></a>
		</div>
		<div class="archive-post-title">
		<h3><a href="#"><?php echo "$DATAAGENDADOKUMENTASI[JUDUL_DAKS]"?></a></h3>
		<div class="post-date"><?php echo "$DATAAGENDADOKUMENTASI[NAMA_DAKS]"?></div>
		</div>
	</div>
	<div class="archive-separator"></div>
<?php }?>  
<?php //p2ai//
$AGENDAP2AI= mysql_query("SELECT * FROM P2AI_AGENDA_KEGIATAN_SPM ORDER BY ID_PAKS DESC LIMIT 1");
while ($DATAAGENDAP2AI=mysql_fetch_array($AGENDAP2AI)){?>
	<div class="post">
		<div class="archive-post-date">
			<div class="archive-post-month"><?php echo substr($DATAAGENDAP2AI['TANGGAL_PAKS'],0,2); ?> <?php echo substr($DATAAGENDAP2AI['TANGGAL_PAKS'],3,3); ?> <?php echo substr($DATAAGENDAP2AI['TANGGAL_PAKS'],7,4); ?></div>
            <a href="../spm-itats/content.php?p=500"><b title="P2AI">P2AI</b></a>
         </div>
        <div class="archive-post-title">
        <h3><a href="#"><?php echo "$DATAAGENDAP2AI[JUDUL_PAKS]"?></a></h3>
        <div class="post-date"><?php echo "$DATAAGENDAP2AI[NAMA_PAKS]"?></div>
        </div>
	</div>
	<div class="archive-separator"></div>
<?php }?>
<?php //monev// 
$AGENDAMONEV= mysql_query("SELECT * FROM MONEV_AGENDA_KEGIATAN_SPM ORDER BY ID_MAKS DESC LIMIT 1");
while ($DATAAGENDAMONEV=mysql_fetch_array($AGENDAMONEV)){?>
	<div class="post">
		<div class="archive-post-date">
			<div class="archive-post-month"><?php echo substr($DATAAGENDAMONEV['TANGGAL_MAKS'],0,2); ?> <?php echo substr($DATAAGENDAMONEV['TANGGAL_MAKS'],3,3); ?> <?php echo substr($DATAAGENDAMONEV['TANGGAL_MAKS'],7,4); ?></div>
            <a href="../spm-itats/content.php?p=600"><b title="MONEV">MONEV</b></a>
		</div>
		<div class="archive-post-title">
		<h3><a href="#"><?php echo "$DATAAGENDAMONEV[JUDUL_MAKS]"?></a></h3>
		<div class="post-date"><?php echo "$DATAAGENDAMONEV[NAMA_MAKS]"?></div>
		</div>
	</div>
<?php }?>
</div>
<?php } ?>